<?php
	function jump($content,$ur,$sec=60){
	    @header("content-type:text/html;charset=utf-8;");
		echo "<body bgcolor='#f0f0f0'><link type='text/css' href='/133Buy/Public/jump.css' rel='stylesheet' />
			<meta http-equiv='content' content='text/html;charset=utf-8'/>
		        <script type='text/javascript' src='/133Buy/Public/change.js'></script>				
		<div id='jump'>
		<font color='red'>{$content}</font><b id='second'>{$sec}</b>秒后自动跳转... 
		页面无法跳转时，点击<a href='{$ur}'>这里</a>
		</div>
		<script type='text/javascript'>
		change({$sec},'{$ur}');
		</script>
		</body>
		";
	}
	
	function getProtypeNameById($arg,$smartyOb){
		$proTypeOb = new protype();
		$res = $proTypeOb->protype_select($arg['columList'], $arg['whereLeft'].$arg['whereRight']);
		$smartyOb->assign($arg['assign'],$res);
	}
	
	function alertInfo($info,$url){
		echo "<script type='text/javascript'>alert('".$info."');location.replace('$url');</script>";
	}
	
	function printArr($arr,$printWays='print_r'){
		echo "<pre>";
		$printWays($arr);
		echo "<pre/>";
	}
	function alert($info){
		echo "<script type='text/javascript'>alert('".$info."');</script>";
	}
	
	
?>